Finish exercises for chapter 5