submitted assignment 3 problem 2