[Examples] Fix sample code to match library features