implement search class method to make spec pass