Implemented basic server - client communication