implemented Disposable class and extends.