solve chap2.q0007