Beginning question 7

The algorithm from the subject gives many false positives (words that do
not have the desired frequency). However all the desired words seem to
be retrieved. I use an abstract class in case other implementation
should be contemplated.