implemented Server as Runnable