Basic Thermodynamics and Cycles