modularized Classifier.java