Finished chapter 8 excercises