added basic name search function to exercise 17