Added ex1.16 solution