fixed the fixed-cost function evaluation, and finished the print statements