Changed exercise 3.1 to conform to required output format (removed 'Pay: ' string)