metaprogramming for classifiers initial implementation