adding static methods and creating new thread in constructor of Server file