abstract classifier into separate file, first pass at cross validation