finished chapter 8 exercises

sample pull request