add Classifier class and change main() to test()