ruby: Solved 009