Psychology and its bearing on education