hw 4 problem 1