updated problem 26