Flexibility and sequence: Educational psychology and the training of teachers