Submitted Assignment 3 problem 1