submitted assignment 1 problem 3