finished exercises for chapter 7