How a gun work?