Heat Engine Thermodynamics