Created a generic Search class.