If a coil is energized with electric current, the resulting magnetic field will attract any nearby magnetic material. When properly switched an attracted projectile can gain high speed and exit through the coil much a pellet gun.
No download links available.