Chapter 4 exercises done.
Merge pull request #13 from SandyThomson/sdt_chapter4

Chapter 4 exercises done.