Learn to Program Exercise Chapter 12