working on assignment 3