added sentiment analysis code