ex3 - set input and output
ex3 - total amount paid
ex3 - all output