implemented find method