problems 1-4, beginning of problem 5