fixed test for problem 25; solved problem 26