How A Territory Can Become A State