finished Chapter4