incremental changes to chapter 10
update chapter 10 sample to match chapter rewrite