code before trie
working on trie.c from home