finished the rest of assignment 7