finish the exercise in chapter 1
finish the exercise in chapter 1