Complete the sentences with the correct \(to\) infinitive or -ing form.
He agreed ..... \(work\) at weekends.