Problem 13: solved