finished chapter 5 excercises