If A is square matrix such that A2 = A, show that (I + A)3 = 7A + I.