gjm comments on Working through D&D.Sci, problem 2 (solution)