in the middle ages , '' she explained to ian , whose knowledge of medieval history was as complete as his knowledge of architecture , and who knew exactly what a quintain was , `` the knights used to practice for jousts and battles with a quintain .