working NB classificator