example code of building classifier for events