Improve example, add example program