Given a reference text about magnetism, tell me the definition of magnetism and how magnetic materials are classified.