add question 6 solution