Completed excercises for chapter 5