update code chapter 2