Problem 53 + solution changes