refactoring ruby edition initial commit