Added class for events. (testing github issue inegration: #1)