[example] Remove typename keyword
[example] Fix unused variable warnings by adding an example usage.