Adding first classes to represent the Graph