Title: Gas and vapor cycles of heat engines