finished chapter 8 exercises