problem 3 done