Test input for #2
Ruby procedural version
Ruby OOP version