Which of the following sets of ordered pairs is a function?

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