added main method to main file