commiting library and sample

library and examples