fix constructors in examples

Examples were broken since 0.4.0 constructor changes