Having private on the class constructor caused context errors and warnings while executing