A sample of gas goes from state A to state B in four different manners