added sample functions to test ctors as function arguments.