Title: Thermodynamics applied to heat engines