added solution for Problem 52