first attempt at a simple tokenizer