Added chapter 8 code example.