Which sentence has a verb in the infinitive form?

Running a marathon takes serious commitment and training.

Sugar is added to food to make it sweet.

Groups of people gathered in the park that Sunday.

The students liked to walk to school in the rain.