Refining problem 40.