medieval ruler