in 1865, he stopped teaching. he wanted to devote all his time to writing. he became editor of the children's magazines "the student and schoolmate", "our little ones", and "". he served in the massachusetts legislature for one year. adams died at his home in dorchester, massachusetts in 1897.