Add function that assigns an id to each function. Alter memoize so that answers is a private var