Dispose method in other classes.