add solution of problem 9.10