more of problem 1 done