init lib with sample