role of cognition in learning