fixed extractngrams example