Add example for using lib

[BUG] constructor's correction: missing initialization variable