1. Sleeping in the tent, everybody got really cold.
2. Knowing the right answer, she smiled happily.
3. The man, parking his car by the shop, is going to get into trouble with the police.
4. Stand away from the working machine. It may be dangerous.
5. Kyle was sitting there, fighting sleep. He refused to go to bed.
6. Thinking about your question. I realised that there is an easy answer to it.