Adapting nextElement to read k-shingles. New class : Word