transformed project to a lib, consolidated example program