Sort out with the main method