create simpler main, and add example1