object oriented design: Text Query skeleton