adding solutions to problems 10 and 25