Use namedtuple to define tokens.