start of graphing code...