add examples from chapter 12