First version of main method