add problem3-14 solution