take 3 on hamming.rb