Facts: - death place: worcester , massachusetts - preceded: joseph h. walker - party: democrat - death date: december 19 , 1916 -lrb- aged 71 -rrb- - spouse: charlotte d. holmes , m. january 30 , 1872 - district: 3rd - term end: march 3 , 1905 - succeeded: rockwood hoar - term start: march 4 , 1899 - state: massachusetts - name: john randolph thayer - birth date: march 9 , 1845 - image: john randolph thayer.png - birth place: douglas , massachusetts Based on these bullet points, write a short biography describing the life of john r. thayer .
A:
john randolph thayer -lrb- 9 march 1845 -- 19 december 1916 -rrb- was a representative from massachusetts .he was born in douglas , massachusetts and attended the common schools and nichols academy in dudley .thayer graduated from yale college in 1869 where he studied law .he was admitted to the bar in 1871 and commenced practice in worcester , massachusetts .there , he served on the city council from 1874 to 1876 and was elected an alderman from 1878 to 1880 .after unsuccessfully running for district attorney in 1876 , he was elected a member of the massachusetts house of representatives in 1880 and 1881 .he then ran for mayor of worcester in 1886 without winning .he did serve in the state senate from 1890 to 1891 .after losing an election in 1892 to the 53rd united states congress he was elected as a democrat to the 56th , 57th , and 58th congresses , serving from 4 march 1899 until 3 march 1905 -rrb- .thayer did not seek reelection in 1904 but resumed his law practice in worcester .he died there on 19 december 1916 and was buried at the rural cemetery .