Second iteration of hamming exercise