Private practice, Portland, Maine, 1871-1902City solicitor, Portland, Maine, 1879-1882State representative, Maine, 1883-1886