add const and & to NNClassifier