Completed chapter 8 excercises