Initial commit of code for chapter 12