doing chapter 9 exercises