added program to solve problem 2