completed excercises for chapter 5