begin ... end block to get the benefit of memoization.