Complex sentence: Charles Hamlin began his military career as a major in the 1st Maine Heavy Artillery Regiment and then gained a staff position as major and assistant adjutant general in the Army of the Potomac.
Split into simpler sentences: Charles Hamlin began his military career as a major in the 1st Maine Heavy Artillery Regiment. He gained a staff position as major and assistant adjutant general in the Army of the Potomac.