Added examples from chapter 4