complete chapter4, make chapter5 exercise.