The design and construction of a large superconducting magnet