The structure of teaching