Problem 7: solved