Added solution for question 3.2