Implemented basic client and server functionality