Solution problem 1 assignment 3