finished chapter 8 exercises
Merge pull request #1 from Simmiah/chap_8_exercises

finished chapter 8 exercises