Relationship between psychological theories and the act of teaching