Setting up code for chapter 7.