Add example usage of the eventsystem in main.cpp