Answer:
1. He smiled cheerfully, thinking of happier days.
2. The girl wore a pretty dress, chotting with her visitors.
3. The train moved at the station, whistling furiously.
4. Mar attracted the teacher's attention, waving his arms wild.
5. The mountains are very high, towering above us.