Identify the dependent clauses or phrases in the following sentences and underline them.
1. Texting on his phone, the man swerved into a ditch.
2. It isn’t necessary to cram all night if you have studied a little each day.
3. We climbed up the hill to enjoy the view.
4. I enjoy painting during my holidays.
5. Whether he attends the party or not, I have decided to go.
6. I will stop playing the drums when you go to sleep.