added function to classify notes