some code and data for mediaeval