Learn to Program, Chapter 5 exercises