classifier example code