Did some of problem 1