Added memoization example