Wrap Trie and NumberToLetterConverter classes in closures