2D magnet