problems 23 and 24
problem 25