Rewrite for Fun with Ruby