Complex sentence: Bean flagged down the train with the danger signal; thinking the bridge was out, the train engineer stopped.
Split into simpler sentences: Bean flagged down the train with the danger signal. Thinking the bridge was out, the train engineer stopped.