Working with server and client