add soln of exer3-5