add little usage example

thank you so much for extracting this to a small lib