Client Code using XDK