Adds code examples from chapter 9