Updated main method constructor call