completed problem 24