Include in your response an explanation of the relationship between spinning electrons and the direction of the magnetic fields they produce in magnetic and non-magnetic materials.