Fixed errors for task3