Refactoring ruby_001