If matter cannot pass through the boundary the system is
classified as closed. Both open and closed systems can exchange energy with their surroundings.
For example, a closed system can expand and thereby raise a weight in the
surroundings; a closed system may also transfer energy to the surroundings if they are at a lower temperature. An isolated system is a closed system that has neither
mechanical nor thermal contact with its surroundings.