Adding custom constructor example code.
Merge pull request #2386 from tgriesser/doc-custom-constructor

Adding custom constructor example code.