reverting oscillator exmaple