Simplify ruby hamming example