An event system implemented in C++