fixed example for constructor