encapsulated ngram generation in a CoureUnit model method. tes