problem3 version1