the medieval villages were located around a castle or a parish church