First implementation of graphing