Event Bus
EventBus is a simple implementation of an event bus pattern. It allows components to subscribe to specific events and receive notifications when those events occur. This class provides mechanisms for registering, emitting, and removing event handlers.