Use init params for constructor function