Example code from the xcb tutorials