Exercise code from Chris Pine's Learn to Program book