Solved problem3