Implemented Server Main class