added examples from chapter 3