Setup for problem 40.