generatePrice function partially completed. coefficients should generate correctly