Passing parameters to a constructors