Memory as a Tool for Learning