extracted token to its own class