Added a superclass for the gui.