Finish chapter 7 exercises.
Merge pull request #8 from gs3/chapter-7-exercises

Finish chapter 7 exercises