Input (grade 9): He began practicing in Hampden, a suburb of Bangor, where he lived until 1848.
Output (grade 5): He lived in Hampden, where he practiced law until 1848, when he moved away.