I think this is great, I just can't follow the steps to apply the generated code to an object. Any help would be gratefully accepted.

Edit: No sooner posted this and got it to work 100%. It was me...