training, testing classifier
finished first version