Latest demand and cost functions added