work on generating frequencies and a tree
work on generating frequencies and a tree, weekly