implemented Disposal class.