Finally Solved Problem 3