basic framework for classifiers done