A middle-aged man works under the engine of a train on rail tracks .