Solve assignment 2.