reworded problem 9