Almost ideal demand system