Create hw9 problem 2