Update graph_class.php