This article is an excellent background of the Cog railway.

I did not know that one of the trains was sent to Chicago for the 1893 World's Fair, nor that the railway was constructed just twenty-five years after the first railroad was built in America. That's quite an impressive engineering feat!