solve exercise GuiQuine