The federal government was created by the states, which as colonies were established separately and governed themselves independently of the others. Units of local government were created by the colonies to carry out various state functions. As the country expanded, it admitted new states modeled on the existing ones.