A simple time dependent system is solved analytically taking the form of a moving step-up or step-down in refractive index. We demonstrate that step motion, by a process of compression or expansion, adds or subtracts energy from radiation passing through, so heating or cooling the photons.