Simulation of Carnot refrigerator written in Ruby.