modify soln for exer 3-9
add soln for exer 3-11