created AdvancedSearch class