new ruby hamming