finished hamming problem