Modelling the Middle Ages