write memoize() and save on shopping bills, today