Make Ruby Functional Again!

Refactoring