Excercise from the Learn to Program Book