type all the example in book of chapter 3