add exercise 4-7 chap1