added soln for Problem 1