Harriet Beecher Stowe started writing her influential anti-slavery novel, "Uncle Tom's Cabin", in Brunswick while her husband was teaching at the college, and Brigadier General (and Brevet Major General) Joshua Chamberlain, a Bowdoin alumnus and professor, was present at the surrender of the Army of Northern Virginia at Appomattox Court House in 1865. Chamberlain, a Medal of Honor recipient who later served as governor of Maine, adjutant-general of Maine, and president of Bowdoin, fought at Gettysburg, where he was in command of the 20th Maine in defense of Little Round Top. Major General Oliver Otis Howard, class of 1850, led the Freedmen's Bureau after the war and later founded Howard University; Massachusetts Governor John Andrew, class of 1837, was responsible for the formation of the 54th Massachusetts; and William P. Fessenden (1823) and Hugh McCulloch (1827) both served as Secretary of the Treasury during the Lincoln Administration. However, the college's involvement in the Civil War was mixed as Bowdoin had many ties to slave labor and the Confederacy.