Learn to Program Section 5.6 exercises