adding main method