Added Twitter class to encapsulate the logic of communicating with Twitter.