made a 'createAndShowGUI() method'