finish problem 24