Adding chapter 6

Adding chapter 6 to `master` branch.