finish problem 7