Properties of Magnets and Electromagnets