Examples of objects or systems that produce magnetic moments include: permanent magnets; astronomical objects such as many planets, including the Earth, and some moons, stars, etc.; various molecules ; elementary particles (e.g. electrons); composites of elementary particles (protons and neutrons —as of the nucleus of an atom); and loops of electric current such as exerted by electromagnets.