gui now uses classes