ruby: Refactor 001