Implemented bigrams and trigrams