making chat server oop