1776-February 1777, March 1777-September 1777, July 1778, July 1778-March 1781, and March 1781-June 1783) and briefly in five other locations, including York, Pennsylvania (September 1777), Princeton, New Jersey (1783), Annapolis, Maryland (November 1783 to August 1784), Trenton, New Jersey (November to December 1784), and New York City (January 1785 to March 1789). On October 6, 1783, after the capital was forced by the Pennsylvania Mutiny of 1783 to relocate to Princeton, New Jersey, Congress resolved to consider a new location for it. The following day, Elbridge Gerry of Massachusetts moved "that buildings for the use of Congress be erected on the banks of the Delaware near Trenton, or of the Potomac, near Georgetown, provided a suitable district can be procured on one of the rivers as aforesaid, for a federal town". In his Federalist No. 43, published January 23, 1788, James Madison argued that the new federal government would need authority over a national capital to provide for its own maintenance and safety. The Pennsylvania Mutiny of 1783 emphasized the need for the national government not to rely on any state for its own security. Article One, Section Eight of the U.S. Constitution permits the establishment of a "District (not exceeding ten miles square) as may, by cession of particular states, and the acceptance of Congress, become the seat of the government of the United States". However, the constitution does not specify a location for the capital. In the Compromise of 1790, Madison, Alexander Hamilton, and Thomas Jefferson agreed that the federal government would pay each state's remaining Revolutionary War debts in exchange for establishing the new national capital in the Southern United States. On July 9, 1790, Congress passed the Residence Act, which approved the creation of a national capital on the Potomac River. The exact location was to be selected by President George Washington, who signed the bill into law on July 16. Formed from land donated by Maryland and Virginia, the initial shape of the federal district was a square measuring on each side and totaling . Two preexisting settlements were included in the territory: the port of Georgetown, Maryland, founded in 1751, and the port city of Alexandria, Virginia, founded in 1749. In 1791–92, a team led by Andrew Ellicott, including Ellicott's brothers Joseph and Benjamin and African-American astronomer Benjamin Banneker, surveyed the borders of the federal district and placed boundary stones at every mile point;