Learn to Program - Exercise 5.6