worked on assignment 2