Open System In Thermodynamics