Added Graph class