solved problem3