Finish exercises in chapter 6
Merge pull request #6 from gs3/chapter-6-exercises

Do exercises in chapter 6