finish chap6_ex