committing harmonic oscillator example