adding sentiment analysis code