In 1865, the Department of Steam Enginery was created and cadet engineers were admitted to the Academy for the first time. In 1874, Congress changed the curriculum to include four years of classroom training and two years of sea duty aboard a regular vessel prior to examinations as warranted midshipmen. In 1882, Congress eliminated the distinction in training between engineer and naval cadets, and designated the student officers as naval cadets; the name reverted to midshipmen in 1902. By an act of Congress passed in 1903, two appointments as midshipmen were allowed for each senator, representative, and delegate in Congress, two for the District of Columbia, and five each year at large. In 1912, Congress authorized commissioning midshipmen as ensigns on graduation day, and ended the previously required two years of post-graduation sea service as warrant officers.