The first successful rack railway in the United States was the Mount Washington Cog Railway, developed by Sylvester Marsh. Marsh was issued a U.S. patent for the general idea of a rack railway in September 1861, and in January 1867 for a practical rack where the gear teeth take the form of rollers arranged like the rungs of a ladder between two L-shaped wrought-iron rails. The first public trial of the Marsh rack on Mount Washington was made on August 29, 1866, when only one quarter of a mile (402 meters) of track had been completed. The Mount Washington railway opened to the public on August 14, 1868. The pinion wheels on the locomotives have deep teeth that ensure that at least two teeth are engaged with the rack at all times; this measure helps reduce the possibility of the pinions riding up and out of the rack.