The class Destroyable a has the main class function
which when called will destroy its argument. All GUI elements are instances of this class, and calling the destroy function will remove them from the screen. In particular, destroying the return value of initHTk will close all windows opened by the program (i.e. remove the whole GUI).