Solving problem 26