Partition function & it's thermodynamic relation.