solved Problem 45