Updated problem 25