Main draws a graph