Changing priorities in the development of cognitive competence and school learning: A general theory