add code for chapter 8