Properties of pure substances. Work and heat. First and second laws of thermodynamics. Entropy. Irreversibility and availability.