A gas in a piston-cylinder device is compressed, and as a result its temperature rises. is this a heat or work energy interaction?