.
Classic doppler effect is caused by the source moving relative to the observer in stable space. When the train moves away, down the railroad tracks, it doesn't stretch the tracks. The space doesn't expand, only the distance increases. As they studied this cosmic redshift, it became apparent that it