adding tokens() method