First implement WordTree