Update chapter 7 for new version of knitr