solve chap2.q0005