problem 23, 24 and almost 25