Added solutions for problems 45 to 50.