chap1 exercise 1&2