Adding answer for question 8