Moved the class ActivityObserver