#2: Extracted the search plugin