added variables for price and cost