changes the variable totalPrice to price in calculating the tax, and add the variable price in the finalPricDo sentence