worked on assignment 3