Submitted version of problem 1