Thermodynamics and Heat Powered Cycles