 He entered the United States Military Academy at West Point, New York, in 1845.He graduated in 1849, first in a class of 43 members.He was appointed to the engineers and was promoted to first lieutenant in 1856.