Memory formation and consolidation in defined neurons of the cortex