add lib and example