adding chapter 2 examples