Choir and grammar schools were designed to train priests, with an emphasis respectively on music and Latin grammar. The reorganisation of the church that began in the reign of David I (1124–53) gave the church a clearer diocesan and parochial structure, meaning that the seats of sheriffdoms, such as Perth, received schools that were usually under monastic patrons.[1] Early examples of grammar schools include the High School of Glasgow in 1124 and the High School of Dundee in 1239.[2] These were usually attached to cathedrals or a collegiate church.[8] The newly created diocesan chancellors may have had authority over cathedral schools and schoolmasters within their diocese.[2]