Step 3: Add delegation for search()