failed version of the hamming method
first attempt at far_mar