Motion of Charged Particles in Magnetic Fields