XDI2 Example: Simple uses of the core functionality