Docs and example for heuristic