Make last memoize example use public functions