ruby hamming test completed