examples from chap 2