Motion of a Charged Particle in a Magnetic Field