Elements of thermodynamics and kinetics