added library, and an example for usage