cleaned up the code by removing an outdated method
marked generated main method as static