initial version of word frequency problem - basic version working with unit tests