Current example uses deprecated method So I updated the right one.
Merge pull request #347 from EyalRubin123/patch-5

Current example uses deprecated method So I updated the right one.