Adding chapter 3

This PR adds chapter 3 to the `master` branch.