Completed three versions of the hamming calculator