The linked source code was last updated in 2013 so it is not current, working code for 7.x series vRO. But, provided here as an example.