Which of the following relations is a function?

A {(0,0), (1, 2), (2,3)}
B {(1, 1), (1, 2), (1,3)}
C {(3, 1), (4, 1), (3, 2)}
D {(0, 0), (0, 1), (1, 2)]