Created classes for client and server (not working)