created values comperator for pair
a class to generate twweets