code for interacting with twitter