implemendted NB and classifier