finished exercises for chapter 2