Adding examples from chapter 4