Make hamming exercise compatible