finish problem 39