Remove unneeded 'self's
Replace C-style code of 'frequencies' with `each_with_obejct`
`drop_every(n)` uses 'reject' instead of 'keep_if'