Medieval agriculture as three-legged stool