 He served as a member of the Pennsylvania House of Representatives in 1837.He was a district judge in Pennsylvania from 1845 to 1867.In 1850 he became a Professor of Law at and reorganized the University of Pennsylvania Law School, where he served for 18 years.