task 7 of assignment 2