class that deals with processing for search terms now written