Hw3 problem 1