Problem 8: solved