Yep. I was focussed on replacing the deprecated function.  
I think it is better though to have a more 'complete/correct' example as we all infer things from what we see. 
Will update this as well.