basic client written, server interaction written