Moved Events and implemented example code