Chapter 5 solutions.
Merge pull request #24 from SandyThomson/sdt_chapter5

Chapter 5 solutions.