add searching function skeleton.