added main method to main