The writing of history in the early Middle Ages: the Anglo-Saxon Chronicle in context