add soln for exer 3-10