Principles of cognitive science in education