Chapter 3 exercises (testing)