doctest/examples for flinn engdahl