cubic total cost function example