Finished problem 24