public static JMenuBar getMenuBar(PippinMachine machine) {
		
		MenubarSetup.machine = machine;
		JMenuBar bar = new JMenuBar();
		JMenu genMenu = new JMenu("File");
		genMenu.setMnemonic(KeyEvent.VK_F);
		bar.add(genMenu);

		JMenuItem trans = new JMenuItem("Translate Source...");
		trans.setMnemonic(KeyEvent.VK_T);
		trans.setAccelerator(KeyStroke.getKeyStroke(
				KeyEvent.VK_T, ActionEvent.CTRL_MASK));
		genMenu.add(trans);
		trans.addActionListener(new TranslateListener());
		
		JMenuItem load = new JMenuItem("Load Source...");
		load.setMnemonic(KeyEvent.VK_L);
		load.setAccelerator(KeyStroke.getKeyStroke(
				KeyEvent.VK_L, ActionEvent.CTRL_MASK));
		genMenu.add(load);
		load.addActionListener(new LoadListener());
		
		JMenuItem ex = new JMenuItem("Exit");
		ex.setMnemonic(KeyEvent.VK_E);
		ex.setAccelerator(KeyStroke.getKeyStroke(
				KeyEvent.VK_X, ActionEvent.CTRL_MASK));
		genMenu.add(ex);
		ex.addActionListener(new ExitListener());
		
		// set up a similar JMenuItem "Generate Students" with S as the 
		// for the shortcuts, add the RandomStudentListener to this JMenuItem
		return bar;
	}