make 3 different classes for router, host, server