Consider a gas in a container which is made air tight. Now, there is a movable piston fitted with the container. The gas performs some mechanical work on the piston by moving it. The reason the gas performs its work is because of which of the following?