added some examples from chapter 5 - from book and my own