Man rescued from floodwaters thankful for grandfather's advice