added example of chapter 2