Variable mass oscillator