figured out problem 9