Placed the main method under class Main