Given that x is an integer between -2 and 2, state the relation represented by the equation y = 2-abs(x) by listing a set of ordered pairs. Then state whether the relation is a function.

I think it's:
(-2,0)
(-1,1)
(0,2)
(1,1)
(2,0)