finalized tokenizing program