functions of education as a social institution