Sample source code is available for download here.