who built the medieval towns