Source code for the XAP online tutorial