Basic principles of learning