Variable rename
Iterate the hash keys instead of the hash

We're not using the hash values at all, so iterate the keys only.
Switch to keyword parameters for methods