starter code for chapter 5