Added solution of Question 8