add lib and sample