Add class of trie