Simple client library.
added rest of example