Problem 25: solved