new class event with test (enum example)