1835, during the Army's first year of the Second Seminole War, they had only three generals: Winfield Scott, Edmund P. Gaines, and Thomas S. Jesup. The Army's remaining fourteen generals "held their rank by brevet only," and none of them were West Point graduates. Nearly the only way to obtain a commission up to 1835, was through the academy, "which created loud complaint", and added to the "Jacksonian Democracy...a deep desire to get rid of the Academy, where, Jacksonians were sure, an aristocratic tradition was being bred." The Mexican–American War brought the academy to prominence as graduates proved themselves in battle for the first time. Future Civil War commanders Ulysses S. Grant and Robert E. Lee, who also later became the superintendent of the academy, first distinguished themselves in battle in Mexico. In all, 452 of 523 graduates who served in the war received battlefield promotions or awards for bravery. The school experienced a rapid modernization during the 1850s, often romanticized by the graduates who led both sides of the Civil War as the "end of the Old West Point era." New barracks brought better heat and gas lighting, while new ordnance and tactics training incorporated new rifle and musket technology and accommodated transportation advances created by the steam engine. With the outbreak of the Civil War, West Point graduates filled the general officer ranks of the rapidly expanding Union and Confederate armies. 294 graduates served as general officers for the Union, and 151 served as general officers for the Confederacy. Of all living graduates at the time of the war, 105 (10%) were killed, and another 151 (15%) were wounded. Nearly every general officer of note from either army during the Civil War was a graduate of West Point and a West Point graduate commanded the forces of one or both sides in every one of the 60 major battles of the war. After the Civil War Immediately following the Civil War, the academy enjoyed unprecedented fame as a result of the role its graduates had played. However, the post-war years were a difficult time for the academy as it struggled to admit and reintegrate cadets from former confederate states. The first cadets from Southern states were re-admitted in 1868, and 1870 saw the admission of the first black cadet, James Webster Smith of South Carolina. Smith endured harsh treatment and was eventually dismissed for academic deficiency under controversial