What is the rule for the function shown in the table?

x|-1|0|1|2
y|-2|1|4|7

A. y = 1/3x + 1
B. y = 3x +1
C. y = 1/3x
D. y = 1/2x + 1