Learn to Program, Chapter 2 exercises