Add events class.