token stack working, test code in place