adding main method to start up server