add soln for exer 3-9