Write the following set in roster form and in set-builder notation.

M is the set of integers that are greater than -2 and less than or equal to 2.

Write the set in roster form: M = (-1, 0, 1, 2)
Write the set in set-builder notation:
A. M = {x | x is an integer, x > -2, x < 2}
B. M = {x | x is an integer, x > -2, x ≤ 2}
C. M = {x - 1 | x is an integer, x > -2, x ≤ 2}
D. M = {x | x is an integer, x > -2, x < 2}