Cylinder with movable piston