implemented classifier, there's a bug (apparent when running the test)