Theory of supply: Cost of production