The conditional variance of X, given Y, is defined by Var(X| Y) = E[(X - E[X| Y])^2 | Y].
Prove the conditional variance formula, namely,
Var(X) = E[Var(X| Y)] + Var(E[X| Y]).
Use this to obtain Var(X) in Example 1 S(B) and check your result by differentiating the generating function.