This would be better if there was an actual object, so that the example can be copy-pasted and run.