templated type for x0
adding both harmonic oscillator models