Iteration 2 of hamming