Finished exercises for chapter 5