Updated Search Example code