hw3 problem 1