a steam locomotive travels past a set of carriages