A general diffusion of knowledge and intelligence being essential to the preservation of the rights and liberties of the people, the general assembly shall establish and maintain free public schools for the gratuitous instruction of all persons in this state within ages not in excess of twenty-one
years as prescribed by law.