solved Problem 26