added find function to exercise 17