Initial implementation for the grapher. Coloring is still not implemented