update problem 7