classification for bigram; making it more general