made the constructor public