added script for drawing EC in visualizer