Minor changes to chapter 6

Added a couple of code blocks to chapter 6