Applications of Electromagnets