finished chapter 9 exercises