Use the grouping method to factor x3 + x2 + 2x + 2.

A. (x + 1)(x + 2)
B. (x2 + 1)(x + 2)
C. x(x + 2)(x + 1)
D. (x + 1)(x2 + 2)