Created a variable for cost

YES!! Fixed my errors