Gui connected to logic