add visualizer script and example