Begin writing Magnet class