quick example to show how to use some of the library functions together