Tutorial: First law of thermodynamics