working lib with example