add soln for exer 2-7