In physics lab we positively charged a metal sphere then placed a compass near it and both ends of the compass were attracted to the sphere. I know magnetic fields are created by electrons, so I made the assumption the compass is attracted to the positive charge because the electrons in the compass are attracted to the positive charge thus the interaction is purely electric. I'm not sure if magnets are negatively charged thou. Is this the basic idea? Or does it have to do with the interactions between magnets and electric charges?