The regulation of learning