move the main method to a separate directory