finished the TokensResource implementation