How a single acting cylinder operates