added prob 16 solution