Harmonic oscillator model for baryons