Updated to include sentiment analysis code