search method example