its main function was to carry wagons along steep rail slopes in the united states