Refactored Ruby