Added chapter 9 initial code