OOP-ify the classifier.