ok, example graph function works properly now and is commented appropriately