draft of oscillator working.
added test of oscillator