Simple chat server/client (OOP school project)