Started implementing the main method