problem3 done