working on assignment 8