Modeling of Erbium Doped Fiber Ring Laser