Code for analyzing twitter data