solutions for assignment 2 4765542