Cleanup this example, simplifying it and making it conform to LLVM coding