added slides with memoization