Adding solutions to problems 26 & 27