added chapter 6 samples