hw11 Problem 1 finished