Added final Graph class