Implementing N Grams Analysis