Problem 9: solved