changed example config class [Event] declaration to use the preferred "on..." pattern