Thermal Energy and Gas Laws