The care of James was entrusted to the Earl and Countess of Mar, "to be conserved, nursed, and upbrought" in the security of Stirling Castle. James was anointed King of Scots at the age of thirteen months at the Church of the Holy Rude in Stirling, by Adam Bothwell, Bishop of Orkney, on 29 July 1567. The sermon at the coronation was preached by John Knox. In accordance with the religious beliefs of most of the Scottish ruling class, James was brought up as a member of the Protestant Church of Scotland, the Kirk. The Privy Council selected George Buchanan, Peter Young, Adam Erskine (lay abbot of Cambuskenneth), and David Erskine (lay abbot of Dryburgh) as James's preceptors or tutors. As the young king's senior tutor, Buchanan subjected James to regular beatings but also instilled in him a lifelong passion for literature and learning. Buchanan sought to turn James into a God-fearing, Protestant king who accepted the limitations of monarchy, as outlined in his treatise "De Jure Regni apud Scotos".