Emits an event, calling all subscribed callback functions with the provided data. *
The name of the event to emit. *
Optionaldata: anyOptional data to pass to the callback functions. *
Subscribes a callback function to a specific event. *
The name of the event to subscribe to. *
The function to call when the event is emitted. *
A simple event emitter class that allows for subscribing to and emitting custom events.