question 5 solution added