refactoring ruby edition first sample