Damped oscillator and its types