Finished exercises for chapter 9