added example chapter 3