By granting them magistrates of their own, the privilege of making bye laws for their own government, that of building walls for their own defence, and that of reducing all their inhabitants under a sort of military discipline, he gave them all the means of security and independency of the barons which it was in his power to bestow.