fix constructors in examples
Merge pull request #11 from cleandart/fix_examples

fix constructors in examples