Started added example code for chapter 2.3

Started added example code for chapter 2.3