A thermodynamic approach to ferromagnetism and phase transitions.