Magnetism and its Application