Magnetism and electricity