Определите функцию герундия в предложениях: 1) on hearing the fire alarm, go straight to the nearest exit 2) i remembe having seen him be fore. 3) her greatest pleasure was traveling. 4)distinguishing between cause and effect is cometimes very difficult. 5) he has a bad habit of smoking before breakfast.