Start of problem 3