added solution for assignment 2 problem 2