add Graph class