Finish exercises for chapter 9