Added solutions to problems 22, 23, 24 and 25