-added JFrame and MenuItemFactory