start of problem 4