Updating example.

I ran the example to confirm it worked. I also implemented a linear search wrapper function.