problem 24 finished