Apex Code examples from my blog at www.mickwheelz.net