Added ex2.50 and ex2.51 solutions