Fixed one of examples - using correct API
Merge pull request #3 from spyrkob/master

Fixed one of examples - using correct API