Practice refactoring ruby programs