Updated code example for Initialization in constructor.

Updated code example for Initialization in constructor.