Modified the Territory class