resolve problems in Ex18.6