Examples of implementation and using IDisposable.