Finish exercises for chapter 6