added chapter 02 code