add simple example in magic fields doctest