marginal cost function example