Magnets and electricity