Added a class for graphs.