problem3 completed