Gas laws and thermodynamics