ruby: Solved 008