Created event framework with usage examples.