Electric Circuits and Magnets