https://9lib.org/document/y8gx6wpr-reversible-and-irreversible-heat-engine-and-refrigerator-cycles.html