ruby: Solved 013