Theory of demand