wrote and tested tokenizer