finished hamming exercise