Initial commit code chapter 7