added ruby hamming