Initial commit of code for chapter 18