updated chapter 6 samples to match latest updates to book