finished exercises for chapter 6