When the Domain Name System was devised in the 1980s, the domain name space was divided into two main groups of domains.[7] The country code top-level domains (ccTLD) were primarily based on the two-character territory codes of ISO-3166 country abbreviations. In addition, a group of seven generic top-level domains (gTLD) was implemented which represented a set of categories of names and multi-organizations.[8] These were the domains gov, edu, com, mil, org, net, and int.