Adding chapter 6 examples