Assignment2 Solution