added the solution for Problem 3