President. From 1786 to 1787, an armed uprising, known as Shays' Rebellion led by Revolutionary War veteran Daniel Shays wrought havoc throughout Massachusetts and ultimately attempted to seize the Federal armory. The rebellion was one of the major factors in the decision to draft a stronger national constitution to replace the Articles of Confederation. On February 6, 1788, Massachusetts became the sixth state to ratify the United States Constitution. 19th century In 1820, Maine separated from Massachusetts and entered the Union as the 23rd state as a result of the ratification of the Missouri Compromise. During the 19th century, Massachusetts became a national leader in the American Industrial Revolution, with factories around cities such as Lowell and Boston producing textiles and shoes, and factories around Springfield producing tools, paper, and textiles. The economy transformed from one based primarily on agriculture to an industrial one, initially making use of water-power and later the steam engine to power factories. Canals and railroads were used for transporting raw materials and finished goods. At first, the new industries drew labor from Yankees on nearby subsistence farms, and later relied upon immigrant labor from Europe and Canada. Although Massachusetts was the first slave-holding colony dating back to the early 1600s, in the years leading up to the American Civil War, Massachusetts was a center of progressivist and abolitionist activity. Horace Mann made the state's school system a national model. Henry David Thoreau and Ralph Waldo Emerson made major contributions to American philosophy. Members of the transcendentalist movement emphasized the importance of the natural world and emotion to humanity. Although significant opposition to abolitionism existed early on in Massachusetts, resulting in anti-abolitionist riots between 1835 and 1837, opposition to slavery gradually increased throughout the next few decades. Abolitionists John Brown and Sojourner Truth lived in Springfield and Northampton, respectively, while Frederick Douglass lived in Boston and Susan B. Anthony in Adams, Massachusetts. The works of such abolitionists contributed to Massachusetts's actions during the Civil War. Massachusetts was the first state to recruit, train, and arm a Black regiment with White officers, the 54th Massachusetts Infantry Regiment. In 1852, Massachusetts became the first state to pass compulsory education laws. 20th century Although the American stock market had sustained steep losses the last week in October 1929, Tuesday, October 29 is remembered as the beginning of the Great Depression. The Boston Stock Exchange, drawn into the whirlpool of