Hamming implemented