Fixed up 12.13.rkt to remove repeated calculations.