separate search logic to Search class