Standalone example of using BAP as a library