P-V diagram was obtained from state 1 to state 2 when a given mass of gas is subjected to temperature change. During the process gas is.