Flexy, flat and functional magnets