Fixed an error in Question 1