Original sentence: After leaving Congress Quincy was a member of the Massachusetts Senate until 1820.From 1823 to 1828 Quincy was mayor of Boston.In his term Quincy Market was built, the fire and police departments were reorganized, and the city's care of the poor was systematized
Edited sentence: After leaving Congress, Quincy was a member of the Massachusetts Senate until 1820.After the first ballot.After the first vote resulted in neither man receiving a majority of the votes they both withdrew their candidacies and John Phillips was elected Boston's first mayor.During his terms as mayor Quincy Market was built, the fire and police departments were reorganized, and the city's care of the poor was systematized.In 1823 Quincy was elected as the second mayor of Boston, he would serve 6 one year terms from 1823 to 1828.On April 8, 1822 Quincy was a candidate for Mayor in Boston's first election under a city charter.The votes of this first election were split between Quincy and Harrison Gray Otis, but because neither had a majority of the electorate neither was elected