 He graduated from the United States Military Academy in 1835, ranking near the bottom of his class (53rd out of 56).He resigned four years later to pursue a career in civil engineering on railroads in New York and overseas in Russia.After his return from Russia, he settled in Iowa, where he practiced law.