what makes a town medieval