get_tokens method