chapter 9 exercises (minus tests)