first attempt for wordfequencies