completed problem 7