First law of thermodynamics