finish problem 51