Added sentiment analysis code