I change the Interpreter class to add the memoization code