updated problem 14