Hamming code script from a few days ago