How a Bump stock attachment works, similar to the kind used by the Vegas shooter

How a Bump stock attachment works, similar to the kind used by the Vegas shooter