Adding solutions to problems 45, 46, 47, 48 & 49. Solution to problem 50 not yet working.