initial code for sentiment analysis