Sentiment  code from previous repo