Finshed problem 24