Making constructor public