Theory and Construction of a Rational Heat Motor