adding all code for gnb and svm