added solutions to problems 22 & 25