Create a base classes for events