Part of task 7 fixed error