Create TwoDGraph class