Finished exercises for chapter 4