an Entity references as follows:
The history of schools in Scotland includes the development of all schools as institutions and buildings in Scotland, from the early Middle Ages to the present day. From the early Middle Ages there were bardic schools, that trained individuals in the poetic and musical arts. Monasteries served as major repositories of knowledge and education, often running schools. In the High Middle Ages, new sources of education arose including choir and grammar schools designed to train priests. Benedictine and Augustinian foundations probably had charitable almonry schools to educate young boys, who might enter the priesthood. Some abbeys opened their doors to teach the sons of gentlemen. By the end of the Middle Ages, grammar schools could be found in all the main burghs and some small towns. In rural