make the constructor of Main private