Implementd the server class using a derived class in main (like how SocketServer in Python works)
Indenting and stuff