draft for problem 1