Question 2 in homework done