A rack railway is a steep grade railway with a toothed rack rail, usually between the running rails. The trains are fitted with one or more cog wheels or pinions that mesh with this rack rail. From Wikipedia
A 22-year-old hiker, Cole Matthes, was saved from life-threatening conditions on Mount Washington after an 11-hour rescue operation involving the Cog Railway.