Removed redudant constructor, fixed code to build
fixed build error in sample