update token class