sentences:  Then he studied law, was admitted to the bar in 1847, and commenced practice in East Aurora, New York.He was District Attorney of Erie County from January 1, 1857 to December 31, 1859, and a member of the New York State Senate (31st D.) in 1864 and 1865.Humphrey was elected as a Democrat to the 39th and 40th United States Congresses, holding office from March 4, 1865, to March 3, 1869.