Turned out that the whole “code examples” section was completely wrong as the code examples given were still on an old version of the API. So they wouldn’t even compile. Let’s treat that as a glitch in the matrix ;)

Please find attached the fixed R2. 

Cheers,
Timur