Created a main method