added if statements to determine the cost of the ticket and tested