Created Graph class