added Dot class and menus for graph