question 3 solution added