sentences:  He was elected Pennsylvania State Attorney General in 1838 and served as a member of the Pennsylvania State Senate for the 1st district in 1841.He served as U.S. Minister to China in 1857.His pro-confederacy views put him in conflict with other Pennsylvania politicians.