A functionalistic approach to memory: theory and data