Getting ready for memoization using maps