added visualizer class